<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>侯体宗</title>
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
    <header>
        <h1>侯体宗的Blog</h1>
        <h2>
            <form action="">
                <input type="text" name="search" placeholder="Search..."></form>
        </h2>
        <h4>自己的路,要自己走</h4>
    </header>
    <nav>
        <ul>
            <li><a href="index.php">首页</a></li>
            <li><a href="">导航2</a></li>
            <li><a href="artcomm.php?art_id=75">留言</a></li>
            <li><a href="">导航4</a></li>
        </ul>
    </nav>
    <div id="main">
        <div id="lside">
            <article>
                <?php foreach ($name as $n) {?>
                <h2><a href="artcomm.php?art_id=<?php echo $n['art_id'];?>">
                    <?php echo $n['title'];?></a></h2>
                <div class="entry_header">
                    <a href="#"><?php echo $n['author'];?></a>
                    <time><?php echo $n['pubtime'];?></time>
                    <a class="catlink" href="#"><?php echo $n['catname'];?></a>
                    <a class="comment" href="#"><?php echo $n['comm'];?></a>
                </div>
                <?php if (isset($n['thumb_img'])){?>
                   <img src="<?php echo $n['thumb_img'];?>" alt="">
                <?php } ?>
                <div class="entry_content">
                   <?php echo $n['content'];?>
                </div>
                <?php }?>
            </article>

            <div id="pagebar">
                Pages:&nbsp;
                <?php echo $pagcode ;?>

            </div>
        </div>
        
<!--栏目右侧及尾部公共区域-->
<?php include(ROOT.'view/front/catfooter.html'); ?>

</body>
</html>